home *** CD-ROM | disk | FTP | other *** search
- Andy Warren
- R.D. # 5 Brola Road
- Middletown, N.Y. 10940
- (914) 386-2256
-
- This program is public domain, and may be distributed freely as long as the
- author message is left intact and the documentation is distributed with the
- program.
-
- UNIX is a trademark of AT & T
-
- DOCUMENTATION FOR WC
-
- WC counts lines, words, and characters, respectively in a text file.
- I wrote it to completely emulate the UNIX (tm) wc utility program. As I have
- not used wc on a real UNIX system, there could be some differences; if you
- find any, please let me know.
-
- USAGE
- wc -{flags} {file(s)}
-
- where {flags} is one or more of :
- l - count only lines
- w - count only words
- c - count only characters
- More than one may be specified, e.g. wc -lw will count both lines and
- words. The default is to count everything.
- wc can accept one or more filenames. If none, wc will use the standard
- input. If more than one, wc will accumulate totals of everything
- counted thus far.
-
-
- Examples:
- wc foo count lines, words, characters in file foo.
- wc <bar counts lines, words, characters in file bar.
- wc foo bar counts lines, words, characters form files foo and bar,
- and also displays totals.
- wc -w test counts only the number of words in file test.
- wc -lc test counts the number of lines and characters in file test.
-
-
-